Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.ui.web.rest.URLService.webapp.contrib--urlpatterns

This contribution is part of XML component org.nuxeo.ecm.platform.ui.web.rest.URLService.webapp.contrib inside nuxeo-platform-webapp-core-5.8.jar

Documentation

Basic pattern for download: it resolve the file on given property of given document and makes its available for download.

Extension Point

Extension point urlpatterns of component URLService.

Contributed Items

  • <urlPattern enabled="true" name="downloadFile">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>false</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>downloadFile</codecName>
          <actionBinding>#{documentActions.download}</actionBinding>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
        </urlPattern>

XML Source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">
    <documentation>
      Basic pattern for download: it resolve the file on given property of given
      document and makes its available for download.
    </documentation>

    <urlPattern enabled="true" name="downloadFile">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>false</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>downloadFile</codecName>
      <actionBinding>#{documentActions.download}</actionBinding>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
    </urlPattern>

    <!-- TODO: add patterns for pdf + edit online links -->

  </extension>